package vista;

import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.GridLayout;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import java.awt.Color;
import javax.swing.UIManager;

public class AcercaDe extends JFrame {
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	
	public AcercaDe() {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		setTitle("Acerca De ");
		setIconImage(new ImageIcon("iconos/navalgo.png").getImage());
		contentPane = new JPanel();
		contentPane.setBackground(new Color(0, 0, 204));
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		
		JLabel titulo = new JLabel("Batalla Navalgo");
		titulo.setForeground(UIManager.getColor("Button.light"));
		titulo.setFont(new Font("Tahoma", Font.BOLD, 16));
		titulo.setHorizontalAlignment(SwingConstants.CENTER);		
		titulo.setAlignmentX(CENTER_ALIGNMENT);
		contentPane.add(titulo, BorderLayout.NORTH);
		
		JPanel infoPanel = new JPanel();
		infoPanel.setBackground(new Color(0, 153, 255));
		infoPanel.setLayout(new GridLayout(6, 0, 0, 0));
		
		JLabel facultad = new JLabel("Facultad de Ingenieria - Universidad de Buenos Aires");
		facultad.setFont(new Font("Tahoma", Font.BOLD, 15));
		facultad.setHorizontalAlignment(SwingConstants.CENTER);
		infoPanel.add(facultad);
		
		JLabel materia = new JLabel("Algoritmos Y Programacion III (75.07)");
		materia.setFont(new Font("Tahoma", Font.BOLD, 14));
		materia.setHorizontalAlignment(SwingConstants.CENTER);
		infoPanel.add(materia);
		
		infoPanel.add(new JLabel("  Autores: "));
		infoPanel.add(new JLabel("     - Ezequiel Rozenzwaig"));
		infoPanel.add(new JLabel("     - Gonzalo Merino"));		
		infoPanel.add(new JLabel("     - Ignacio Giss"));
		
		contentPane.add(infoPanel, BorderLayout.CENTER);
	}

}
